package com.dexgdx.game.util.trajectory.node;

import com.dexgdx.game.constants.EMoveDirection;
import com.dexgdx.game.util.trajectory.Trajectory;


public class NorthWestTrajectoryNode extends TrajectoryNode {

	@Override
	public TrajectoryNode initalizeFrom(Trajectory trajectory) {
		x = trajectory.getDirectionSpeed() * -1;
		y = trajectory.getDirectionSpeed() * -1;
		direction = EMoveDirection.NORTH_WEST;
		return this;
	}
	@Override
	public TrajectoryNode clone() {
		NorthWestTrajectoryNode trajectory = new NorthWestTrajectoryNode();
		trajectory.setFromPoint(this);
		return trajectory;
	}
}
